Mastering Microsoft Dynamics 365 Customer Engagement: An advanced guide to developing and customizing CRM solutions to improve your business applications, 2nd Edition by Deepesh Somani
Author:Deepesh Somani [Somani, Deepesh]
Language: eng
Format: mobi, epub
Tags: COM088000 - COMPUTERS / System Administration / General, COM051380 - COMPUTERS / Programming / Microsoft, COM051430 - COMPUTERS / Software Development and Engineering / Project Management
Publisher: Packt Publishing
Published: 2019-02-27T16:00:00+00:00
Source code
Now, let's examine the complete code. The comments given explain the relevant steps in the code:
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script type="text/javascript" src="ClientGlobalContext.js.aspx">
</script><script type="text/jscript" src="
https://dynamisitycrm.crm8.dynamics.com/WebResources/new_jquerymin"></script>
<script type="text/jscript">
//Function called when the web resource is loaded
$(document).ready(function () {
var req = new XMLHttpRequest();//Initializing request
req.open("GET", window.parent.Xrm.Page.context.getClientUrl() +
"/api/data/v9.0/EntityDefinitions(LogicalName='contact')
/Attributes", true); //Opens request
//Sets request Headers
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("Prefer", "odata.include-annotations="*"");
//Function to detect ready state change
req.onreadystatechange = function () {
if (this.readyState === 4) {
req.onreadystatechange = null;
//Check if request completed successfully
if (this.status === 200) {
var result = JSON.parse(this.response);//Parse JSON response
var index = 1;
for (var i = 0; i < result.value.length; i++) {
var schemaName = result.value[i].SchemaName; //Gets schemaname from response.
$("#Entities").append("<option value='" + index + "'>" + schemaName + "</option>");
index = index + 1; }
}
else {
Xrm.Utility.alertDialog(this.statusText); }
} };
req.send();
});
</script>
<style type="text/css">
.select {
font-size: 12px;
font-family: Segoe 020UI;
color: #444444;
margin: -8px; }
.control {
margin-left: 108px;
font-size: 12px;
height: 23px; }
</style>
</head>
<body>
<div class="select">
<label for="Entities">Fields</label>
<select name="Entities" id="Entities" class="control">
<option value="0">--<options>
</select>
</div>
</body>
</html>
Let's perform the following steps:
Navigate to Settings | Customization | Customize the System and select Web Resources. Click New.
Name the web resource as contactdynamicoptionset. Select Type as HTML and paste the preceding code in the Text Editor link. Click on SAVE and PUBLISH:
Download
Mastering Microsoft Dynamics 365 Customer Engagement: An advanced guide to developing and customizing CRM solutions to improve your business applications, 2nd Edition by Deepesh Somani.epub
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
What's Done in Darkness by Kayla Perrin(26620)
The Fifty Shades Trilogy & Grey by E L James(19100)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19083)
Shot Through the Heart by Mercy Celeste(18955)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17139)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(17026)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(16901)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16841)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16470)
The Subtle Art of Not Giving a F*ck by Mark Manson(14386)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14158)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(13678)
Scorched Earth by Nick Kyme(12788)
Drei Generationen auf dem Jakobsweg by Stein Pia(10985)
Suna by Ziefle Pia(10904)
The Ultimate Python Exercise Book: 700 Practical Exercises for Beginners with Quiz Questions by Copy(10635)
D:\Jan\FTP\HOL\Work\Alien Breed - Tower Assault CD32 Alien Breed II - The Horror Continues Manual 1.jpg by PDFCreator(10598)
De Souza H. Master the Age of Artificial Intelligences. The Basic Guide...2024 by Unknown(10570)
Scythe by Neal Shusterman(10371)
